import time

from example.test.machine_configs.common_auto_machine import BUILD_JSON
from finite_state_machine import FiniteStateMachine

if __name__ == '__main__':
    machine = FiniteStateMachine()
    machine.build_from_json(BUILD_JSON)
    machine.start()
    machine.set_parameter('a', 3)
    time.sleep(10)
    machine.set_parameter('b', 3)
    time.sleep(10)
    machine.stop()
